3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate direct draw surface draw contexts.
Windows 32 draw contexts are always implicitly single buffered.
You can use the Q3DDSurfaceDrawContext_New function to create a new Direct Draw surface draw context object.
TQ3DrawContextObject Q3DDSurfaceDrawContext_New (const TQ3DDSurfaceDrawContextData
*drawContextData);
Q3DDSurfaceDrawContext_New returns a Direct Draw surface draw context object if it is successful; otherwise it returns NULL . The application must set up the necessary data structure, as described in "Direct Draw Surface Draw Context Structure" .
You can use the Q3DDSurfaceDrawContext_GetDirectDrawSurface function to retrieve the surface descriptor associated with a Direct Draw surface draw context object.
TQ3Status Q3DDSurfaceDrawContext_GetDirectDrawSurface (
TQ3DrawContextObject drawContext,
TQ3DDSurfaceDescriptor *ddSurfaceDescriptor);
You can use the Q3DDSurfaceDrawContext_SetDirectDrawSurface function to set the surface descriptor associated with a Direct Draw surface draw context object.
TQ3Status Q3DDSurfaceDrawContext_SetDirectDrawSurface (
TQ3DrawContextObject drawContext,
const TQ3DDSurfaceDescriptor *ddSurfaceDescriptor);
Previous | QD3D Book | Overview | Chapter Contents | Next |